SUMMARY = "Terminal multiplexer"
HOMEPAGE = "http://tmux.sourceforge.net"
SECTION = "console/utils"

LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://tmux.c;beginline=3;endline=17;md5=f256b76d52e7b4d02bf19144bdaca107"

DEPENDS = "ncurses libevent bison-native"

SRC_URI = "git://github.com/tmux/tmux.git;nobranch=1;protocol=https \
           file://cmd-parse.c  \
           "
SRCREV = "25cae5d86f01d0deb050243842ed5d967b3dc411"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

PACKAGECONFIG ??= ""
PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"

do_configure:prepend() {
    # The 'compat' directory is needed for output during the build but it's
    # not automatically created when building outside the source directory.
    mkdir -p ${B}/compat
    cp ${WORKDIR}/cmd-parse.c   ${WORKDIR}/git/ 
}

EXTRA_OEMAKE ="YACC=bison \
              "   